import request from '@/utils/request'

// 查询会员基础信息列表
export function listBasic(query) {
  return request({
    url: '/member/basic/list',
    method: 'get',
    params: query
  })
}
// 下载导入模板
export function importTemplate() {
  return request({
    url: '/member/basic/importTemplate',
    method: 'get'
  })
}
// 查询会员基础信息详细
export function getBasic(memberNo) {
  return request({
    url: '/member/basic/' + memberNo,
    method: 'get'
  })
}
// 查询会员订单
export function memberOrderList(query) {
  return request({
    url: '/member/basic/memberOrderList',
    method: 'get',
	 params: query
  })
}
// 新增会员基础信息
export function addBasic(data) {
  return request({
    url: '/member/basic',
    method: 'post',
    data: data,
    // mmv: true,
  })
}
// 客户标签客户明细
export function customerMarketingList(query) {
  return request({
    url: '/member/basic/customerMarketingList',
    method: 'get',
	 params: query
  })
}

// 修改会员基础信息
export function updateBasic(data) {
  return request({
    url: '/member/basic',
    method: 'put',
    data: data,
    // mmv: true,
  })
}

// 删除会员基础信息
export function delBasic(memberNo) {
  return request({
    url: '/member/basic/' + memberNo,
    method: 'delete'
  })
}

// 导出会员基础信息
export function exportBasic(query) {
  return request({
    url: '/member/basic/export',
    method: 'get',
    params: query
  })
}

// 编辑会员基础信息
export function editMemberStatus(query) {
  return request({
    url: '/member/basic/editMemberStatus',
    method: 'put',
    data: query
  })
}

// 身份证识别
export function recognitionCertificate(query) {
  return request({
    url: '/member/basic/recognitionCertificate',
    method: 'put',
    data: query,
    // mmv: true,
  })
}
//客户营销
export function customerMarketing() {
  return request({
    url: '/member/basic/customerMarketing',
    method: 'get'
  })
}
//车型营销
export function modelMarketingList(query) {
  return request({
    url: '/member/basic/modelMarketingList',
    method: 'get',
	params: query,
  })
}
// 出租率车型
export function rentModelMarketingList(query) {
  return request({
    url: '/member/basic/rentModelMarketingList',
    method: 'get',
	 params: query
  })
}
//闲置车辆
export function idleModelMarketingList(query) {
  return request({
    url: '/car/basic/idleModelMarketingList',
    method: 'get',
	 params: query
  })
}
// 车型活动列表
export function carModelList(query) {
  return request({
    url: '/member/basic/carModelList',
    method: 'get',
	 params: query
  })
}
